package org.jeecg.modules.monitoring.j_monitoring.mapper;
import java.util.Collection;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.monitoring.j_monitoring.entity.NetworkInterfaceLog;

/**
 * @Description: 网络接口记录
 * @Author: xiaoyq
 * @Date:   2023-05-23
 * @Version: V1.0
 */
public interface NetworkInterfaceLogMapper extends BaseMapper<NetworkInterfaceLog> {
    /**
     * 批量插入网络接口记录
     * @param networkInterfaceLogCollection
     * @return
     */
    int insertBatch(@Param("networkInterfaceLogCollection") Collection<NetworkInterfaceLog> networkInterfaceLogCollection);

    /**
     * 删除同步的数据
     * @return
     */
    int deleteSyncData();

    /**
     * 删除关键的数据
     * @return
     */
    int deleteKeyData();

    /**
     * 根据FDN、名称获得网络接口记录信息
     * @param fdn
     * @param name
     * @return
     */
    List<NetworkInterfaceLog> selectByFdnAndName(@Param("fdn") String fdn, @Param("name") String name);
}
